/* تأكد من أن الـ html و body يمتدان 100% */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* تغليف الصفحة بالكامل */
  .wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* الحد الأدنى للارتفاع يساوي ارتفاع الشاشة */
  }
  
  /* المحتوى الرئيسي ينمو ليملأ المساحة المتبقية */
  .main-content {
    flex: 1;
  }
  
  /* مثال لتنسيق الفوتر (يمكنك تعديله حسب رغبتك) */
  .footer-section {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
  }



body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

.museum-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background-color: #fff;
  
}

.museum-image-container {
    flex: 1;
    order: 40;
    padding: 10px;
    margin-top: -70px;
}

.museum-image-container img {
    width: 100%;
    height: 60vh; /* هنا يتم تحديد الارتفاع بنسبة 60% من ارتفاع الشاشة */
    border-radius: 80px;
    object-fit: contain;  /* تأكد من أن الصورة تتناسب داخل الإطار */
}



.museum-content-container {
    flex: 1;
    padding: 20px;
}

.museum-content-container h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
    margin-top: -50px;
}

.museum-content-container p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.museum-details {
    font-size: 0.9em;
    color: #777;
    line-height: 1.4;
}

.museum-details span {
    display: block;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .museum-section {
        flex-direction: column;
    }

    .museum-image-container, .museum-content-container {
        flex: 1;
        max-width: 100%;
    }
}



.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5; /* أقل من قيمة z-index الخاصة بالهيدر */
}

.close-button a {
    color: #ffbb00;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 30px;
}

.close-button a:hover {
    color: #ffcccc;
}


/* Carousel CSS File */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.carousel-section {
    position: relative;
    width: 90%;
    margin: 40px auto;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    width: 100%;
    flex-shrink: 0;
    border-radius: 8px;
}

.carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px; /* زيادة أو تقليل المسافة بين الأزرار */
}

.carousel-buttons button {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.carousel-buttons button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Navigation bar */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 10px 0; /* تقليل المسافة داخل الـ nav */
}

.nav a {
    margin: 0 15px; /* تقليل المسافة بين العناصر */
    text-decoration: none;
    color: #666;
    font-size: 14px; /* تقليل حجم الخط */
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #ea8e22;
}

/* تخصيص التنسيق للشاشات الصغيرة */
@media (max-width: 768px) {
    .nav {
        flex-wrap: nowrap; /* الحفاظ على العناصر في سطر واحد */
    }
    
    .nav a {
        margin: 0 10px; /* تقليل المسافة بين العناصر أكثر */
        font-size: 12px; /* تقليل حجم الخط أكثر */
    }
}


/* تحسين للأجهزة الأصغر (الهواتف الذكية) */
@media (max-width: 480px) {
    .museum-image-container img {
        height: 30vh; /* تقليل الارتفاع أكثر للأجهزة الصغيرة جدًا */
    }

    .carousel-buttons {
        padding: 0 2%; /* تقليل المسافة بين الأزرار أكثر */
    }


}